
	<div id="submenu">
<?php echo anchor('setting/', lang('form_label_back'))?>
<br>
<?php echo anchor('list_price/new_list_price', lang('menuitem_add_new').' '.lang('menuitem_list_price'))?>
<br>
<?php echo anchor('list_price/new_list_price', lang('menuitem_add_new').' '.lang('general_category'))?>
	</div>
	
	
	<?php
		//print how much list price(s) we get
		echo $count.' '.lang('general_record_found');

			
	?>
	
	<?php if($count > 0) {?>

				
	<table  id='myTable' name='myTable' class='tablesorter' border='0' cellspacing='1' cellpadding='0'>
		<thead><tr>
			<th> # </th>
			<th> <?php echo lang('form_label_name')?> </th>
			<th> <?php echo lang('general_category')?> </th>
			<th> <?php echo lang('menuitem_price')?> </th>
			<th> <?php echo lang('menuitem_edit')?> </th>
			<th> <?php echo lang('menuitem_delete')?> </th>
		</tr>
		</thead>
		<tbody>
	<?php 
		$i = 0;
		foreach($result as $row){
			echo "<tr>";
			echo "<td>". ++$i ."</td>";
			echo "<td>".$row['test_name']."</td>";
			echo "<td>".$list_price_cat[$row['category_id']]."</td>";
			echo "<td>".$row['price']."</td>";
			echo "<td>". anchor("list_price/new_list_price/".$row['id'] , lang('menuitem_edit'))."</td>";
			echo "<td>". anchor("list_price/delete_list_price/".$row['id'] , lang('menuitem_delete'))."</td>";
			echo "</tr>";
		}
	echo "</table>";
	} //end if?>
